package com.example.demo.untils;

import com.github.pagehelper.PageInfo;

public class PageVoUtils {


    public static <T> PageBean<T> convertTopageVo(PageInfo<T> pageInfo) {
        PageBean<T> pagevo = new PageBean<T>();
        pagevo.setTotal(pageInfo.getTotal());
        pagevo.setRows(pageInfo.getList());
        return pagevo;
    }

}
